package com.tongji.admin.event
{
	import com.tongji.admin.vo.Type;
	
	import flash.events.Event;
	
	import mx.collections.ArrayCollection;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2011/7/
	 */ 
	public class TypeAdminEvent extends Event
	{
		public static const ADD_TYPE:String = "addType";
		public static const GET_ALL_TYPE:String = "getAllType";
		public static const UPDATE_TYPEARRAY:String = "updateTypeArray";
		
		public var newtype:Type;
		public var typeArray:ArrayCollection;
		
		public function TypeAdminEvent(type:String, newtype:Type = null, typeArray:ArrayCollection = null)
		{
			super(type);
			this.newtype = newtype;
			this.typeArray = typeArray;
		}
		
		override public function clone():Event
		{
			return new TypeAdminEvent(type, newtype, typeArray);
		}
	}
}